package com.example.repository;

import com.example.entity.ProductType;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
 * Created by Administrator on 2019/7/8.
 */
public interface ProductTypeRepository extends JpaRepository<ProductType,Long>,JpaSpecificationExecutor<ProductType> {

    List<ProductType> findByOnSaleAndRecStatus(Integer onSale,Integer recStatus);
}
